package com.batsoft.redis;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.HashMap;
import java.util.Map;

/**
 * @author <a href="mailto:hellohesir@gmail.com">Mr_He</a>
 * 2019/5/9 15:53
 */
@Getter
@Setter
@ConfigurationProperties(prefix = "redis")
public class RedisProperties {

    private Integer timeout = 5000;

    private Integer maxIdle = 100;

    private Integer maxTotal = 500;

    private Integer minIdle = 0;

    private Map<String, RedisConnHost> source = new HashMap<>();


}
